#region Using

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;

using Gizmox.WebGUI.Common;
using Gizmox.WebGUI.Forms;
using Gizmox.WebGUI.Common.Interfaces;

#endregion

namespace TVC.Modules.Ref
{
    public partial class frmEmpConfirm : Form
    {
        public frmEmpConfirm()
        {
            InitializeComponent();
        }
        public frmEmpConfirm(Gizmox.WebGUI.Common.Interfaces.IContext objContext)
            : base(objContext)
        {
            
        }
         

        private void btnOK_Click(object sender, EventArgs e)
        {
            ReturnDate = dtp.Value;
            DialogResult = DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Close();
        }
        public DateTime ReturnDate { get; set; }

        private void frmEmpConfirm_Load(object sender, EventArgs e)
        {
            //dtp.Value = DateTime.Today.AddDays(-1);
        }
        public string Message
        {
            get { return lblMsg.Text; }
            set { lblMsg.Text = value; }
        }

        internal void SetMinDate(DateTime dateTime)
        {
            dtp.MinDate = dateTime;
        }
    }
}